package org.alex.sample.dao;

import java.util.List;
import java.util.Map;

import org.alex.sample.model.Subject;
import org.alex.sample.model.User;
import org.alex.sample.page.PagerModel;

public interface SubjectDAO extends IBaseDAO<Subject> {

	public List<Subject> findAllSubject() throws Exception;
	
	public void createSubject(Subject subject) throws Exception;
	
	public void editSubject(Subject subject) throws Exception;
	
	public void deleteSubject(Integer sub_id) throws Exception;
	
	public Subject findSubjectById(Integer sub_id) throws Exception;
	
	public PagerModel<Subject> findAllByPage() throws Exception;
	
	public List<String> getSubjectUser(Integer subjectId) throws Exception;
	
	public void insertSubjectUser(List<String> insertList, Integer subjectId) throws Exception;
	
	public void deleteSubjectUser(List<String> deleteList, Integer subjectId) throws Exception;
	
}
